<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //什么是内置对象
        //测试内置对象Math.max()
        var arr = [1, 2, 42, 1, 5]
        console.log(Math.max()); // -Infinity(无穷小)
        console.log(Math.max(1, 2, 3, 4)); // 4
        console.log(Math.max('pink')); // NaN
        console.log(Math.max(arr)); //NaN
    </script>
</head>

<body>

</body>

</html>